package com.coming.mySpring.base.service;

import com.coming.mySpring.base.query.BaseQuery;

import java.util.List;

public interface IBaseService<T> {

    //增
    void save (T t);
    //改
    void update(T t);
    //删除
    void delete (Long id);
    //查询全部
    List<T> loadAll();
    //查询单个
    T loadOne(Long id);
    //查询所有条数
    Long queryCount(BaseQuery query);
    //分页查询
    List<T> queryList(BaseQuery query);
    //批量删除
    void batchDel(List<Long> ids);
}
